import {ajaxPost, deleteFor, post} from "@/assets/js/common";

const menuApiPrefix = '/system/menu'

//条件分页获取菜单的信息
export function queryPageByQo(data) {
    return ajaxPost(menuApiPrefix + "/queryPageByQo", data)
}

// 新增菜单
export function addMenu(data) {
    return ajaxPost(menuApiPrefix + "/addMenu", data)
}

// 删除菜单
export function deleteMenu(data) {
    return deleteFor(menuApiPrefix + "/deleteMenu/" + data)
}

export function editMenu(data) {
    return post(menuApiPrefix + "/editMenu", data)
}